package team8.fitdroid;



import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class main extends Activity {
    /** Called when the activity is first created. */
	//test
	private Button gpsbutton;
	private Button exercisebutton;
	private Button configbutton;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        gpsbutton= (Button)findViewById(R.id.gpsbutton);
        gpsbutton.setOnClickListener(gpsbuttonListener);
        
        exercisebutton = (Button)findViewById(R.id.exercisebutton);
        exercisebutton.setOnClickListener(exercisebuttonListener);
        
        configbutton = (Button)findViewById(R.id.configbutton);
        configbutton.setOnClickListener(configbuttonListener);
    }
    
    private OnClickListener gpsbuttonListener = new OnClickListener() {
        public void onClick(View v) {
          // do something when the button is clicked
            Intent i = new Intent(main.this, runsetup.class);
            startActivity(i);
        }
    };
    
    private OnClickListener configbuttonListener = new OnClickListener() {
        public void onClick(View v) {
          // do something when the button is clicked
            Intent i = new Intent(main.this, configuration.class);
            startActivity(i);
        }
    };
    
    private OnClickListener exercisebuttonListener = new OnClickListener() {
        public void onClick(View v) {
          // do something when the button is clicked

        }
    };
}